<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<html>
<%@ include file="../inc/Title.jsp"%>
<head>
<script src="/calendar/calendar.js"></script>
<script language="javascript">
	function checkInput(){
		if(window.event.keyCode==13){
			doOk();
		}
	}
	function doOk(){
		var str="search_type=2";
		var estName=document.getElementById("est_name").value;
		var areaId=document.getElementById("area_id").value;
		var estTypeId=document.getElementById("est_type_id").value;
		var estLevelId=document.getElementById("est_level_id").value;
		//if(estName=="" && areaId=="0"){
		//	alert("请输入查询条件");
		//	return;
		//}
		window.location="/business/ReceivableList.ihtm?search_type=2&area_id="+areaId+"&est_type_id="+estTypeId+"&est_level_id="+estLevelId+"&search_key="+encodeURIComponent(estName);
	}
	function doCancel(){
		window.close();
	}
</script>
</head>
<body oncontextmenu="return false">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td align="center" valign="top">
			
			<c:set var="pageTopTitle" value="应收账款" />
			<c:set var="pageTopMark" value="根据客户名称或者地区，查询客户的应收款情况，可以对客户进行收款、调账以及查看对账单等操作" />
			<%@ include file="../inc/PageTop.jsp"%>
			
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center" class="ListTable">
				<tr class="ListTr">
					<td width="80" class="ListTd FontSmall_Bold">
						客户名称
					</td>
					<td class="ListTd FontSmall">
						<input type="text" maxlength="15" name="est_name" id="est_name" onKeyUp="checkInput();">
					</td>
				</tr>
				
				<tr class="ListTr">
					<td class="ListTd FontSmall_Bold">
						地区
					</td>
					<td class="ListTd FontSmall">
						<select name="area_id" id="area_id">
							<option value="0">==请选择==</option>
			  				<c:forEach var="item" items="${areaList}">
			  					<option value="${item.id}">${item.areaName}</option>
			  				</c:forEach>
			  			</select>
					</td>
				</tr>
				<tr class="ListTr">
					<td class="ListTd FontSmall_Bold">
						类别
					</td>
					<td class="ListTd FontSmall">
						<select name="est_type_id" id="est_type_id">
							<option value="0">==请选择==</option>
			  				<c:forEach var="item" items="${estTypeList}">
			  					<option value="${item.id}">${item.typeName}</option>
			  				</c:forEach>
			  			</select>
					</td>
				</tr>
				<tr class="ListTr">
					<td class="ListTd FontSmall_Bold">
						等级
					</td>
					<td class="ListTd FontSmall">
						<select name="est_level_id" id="est_level_id">
							<option value="0">==请选择==</option>
			  				<c:forEach var="item" items="${estLevelList}">
			  					<option value="${item.id}">${item.levelName}</option>
			  				</c:forEach>
			  			</select>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height="10" align="center">
			<table width="98%" border="0" cellpadding="0" cellspacing="0">
				<tr><td align="center" bgcolor="#666666" height="1"></td></tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>
			<table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
				<tr class="ListTr">
					<td>
						<input type="button" class="Button" value=" 确 定 " onClick="doOk();">
						<input type="button" class="Button" value=" 退 出 " onClick="doCancel();">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

</body>
</html>